package com.hzit.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.HiddenHttpMethodFilter;

/**
 * 类名：
 * 作者：WF
 * 功能：如何修改默认的表单隐藏域参数，达到修改请求方法的目的
 */
@Configuration
public class MyHiddenHttpMethodFilter {

	@Bean
	public HiddenHttpMethodFilter hiddenHttpMethodFilter(){
		HiddenHttpMethodFilter methodFilter = new HiddenHttpMethodFilter();
		methodFilter.setMethodParam("_m");
		return methodFilter;
	}
}
